package com.Webserver.core;

/**
 * 空请求异常
 * 当HTTPRequest在解析请求时发现此次请求为空请求时会抛出异常.
 */
public class EmptyRequestException extends Exception {
    /**
     * 自定义异常:extends Exception
     * 自定义异常要完成以下工作:
     * 1.:类名要见明知意
     * 2.:需要继承自Exception(直接或间接继承)
     * 3.:提供所有种类的构造方法.
     */
    public EmptyRequestException() {
    }

    public EmptyRequestException(String message) {
        super(message);
    }

    public EmptyRequestException(String message, Throwable cause) {
        super(message, cause);
    }

    public EmptyRequestException(Throwable cause) {
        super(cause);
    }

    public EmptyRequestException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
